//
//  WBMessageViewController.swift
//  weibo
//
//  Created by swift on 17/2/22.
//  Copyright © 2017年 jason. All rights reserved.
//

import UIKit

class WBMessageViewController: WBBaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        
    }
    
    @objc fileprivate func showFriends(){
        print("123")
        let vc = testViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    }
}


//MARK:-设置界面
extension WBMessageViewController{
    //重写父类的方法
    override func setuptableview() {
        super.setuptableview()
        //设置导航的按钮
        
        navitem.leftBarButtonItem = UIBarButtonItem(title: "爱好", target: self, action: #selector(showFriends))
        
        //        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", target: self, action: #selector(showFriends))
    }
}
